public class TestFanXing {
    public static void main(String[] args) {
        DemoFanXing <String> demoFanXing=new DemoFanXing<>();
        demoFanXing.t="hello";
        demoFanXing.show("大家好");

        DemoFanXing <Integer> demoFanXing2=new DemoFanXing<>();

        demoFanXing2.show(1);


        //泛型方法
        MyGenericMethod myGenericMethod=new MyGenericMethod();

        myGenericMethod.show("ttt");
        myGenericMethod.show(2123);
        myGenericMethod.show(1.2);


    }
}
